package com.qf.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author AzureSky_X
 * @Date 2020/11/17 20:34
 * @Version 1.0
 */
public class Good {
    private Integer id;
    private String goodName;
    private BigDecimal goodPrice;
    //商品描述
    private String goodDesc;
    //上市时间
    private Date goodTime;
    /**
     * 存放商品地址
     */
    private  String goodImg;
    //热销指数
    private Integer goodHot;
    private Integer typeId;

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    private GoodType goodType;

    public Good() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public BigDecimal getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(BigDecimal goodPrice) {
        this.goodPrice = goodPrice;
    }

    public String getGoodDesc() {
        return goodDesc;
    }

    public void setGoodDesc(String goodDesc) {
        this.goodDesc = goodDesc;
    }

    public Date getGoodTime() {
        return goodTime;
    }

    public void setGoodTime(Date goodTime) {
        this.goodTime = goodTime;
    }

    public String getGoodImg() {
        return goodImg;
    }

    public void setGoodImg(String goodImg) {
        this.goodImg = goodImg;
    }

    public Integer getGoodHot() {
        return goodHot;
    }

    public void setGoodHot(Integer goodHot) {
        this.goodHot = goodHot;
    }

    public GoodType getGoodType() {
        return goodType;
    }

    public void setGoodType(GoodType goodType) {
        this.goodType = goodType;
    }

    @Override
    public String toString() {
        return "Good{" +
                "id=" + id +
                ", goodName='" + goodName + '\'' +
                ", goodPrice=" + goodPrice +
                ", goodDesc='" + goodDesc + '\'' +
                ", goodTime=" + goodTime +
                ", goodImg='" + goodImg + '\'' +
                ", goodHot=" + goodHot +
                ", typeId=" + typeId +
                ", goodType=" + goodType +
                '}';
    }
}
